package com.lyf.design.learn.designmodel.chain.sample.v1;

/**
 * @AUTHOR LYF
 * @DATE 2022/6/10
 * @VERSION 1.0
 * @DESC
 */
public abstract class Handler {
    private String name;
    Handler nextHandler;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Handler getNextHandler() {
        return nextHandler;
    }

    public void setNextHandler(Handler nextHandler) {
        this.nextHandler = nextHandler;
    }
    // 处理---
    abstract boolean handle(Request request);
}
